import { getCatalogue } from "../../api/catalogue";
export default {
  namespaced: true,
  state: {
    map: {
      catalogue: {},
      commentList: {},
    },
  },
  mutations: {
    load(state, map) {
      state.map = map;
      console.log(state.map);
    },
  },
  actions: {
    load: async ({ commit }, id) => {
      const res = await getCatalogue(id);
      commit("load", res.data.data.map);
    },
  },
};
